﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Course.Models
{
    public class LogInModel
    {
        public enum Role { 
			STUDENT,
			TEACHER,
			ADMIN
        }
        [Required(ErrorMessage = "*")]
        public string UserId { get; set; }
        [Required(ErrorMessage = "*")]
        public string Password { get; set; }

        public int eRole { get; set; }
        public Role role {
            get { return (Role)eRole; }
            set { eRole = (int)value; }
        }
    }
	
}
